<extend name="Public/base" />
<block name="body">
  <div class="main-title cf">
    <h2>新增任务目标</h2>
  </div>
  
  <!-- 标签页导航 -->
  <div class="tab-wrap">
    <div class="tab-content"> 
      <!-- 表单 -->
      <form id="form" action="{:U('update')}" method="post" class="form-horizontal doc-modal-form">
        <!-- 基础 -->
        <div id="tab1" class="tab-pane in tab1">
          <div class="form-item cf">
            <label class="item-label">开始时间</label>
            <div class="controls">
              <input type="text" class="text input-mid " name="time-start" id="time-start" value="<notempty name="info.id">{$info.time-start|date="Y-m-d",###}</notempty>">
            </div>
          </div>
          <div class="form-item">
            <label class="item-label">结束时间</label>
            <div class="controls">
              <input type="text" class="text input-mid" name="time-end" id="time-end" value="<notempty name="info.id">{$info.time-end|date="Y-m-d",###}</notempty>" >
            </div>
          </div>
          <div class="form-item">
            <label class="item-label">任务目标<span class="check-tips">（只能填写数字）</span></label>
            <div class="controls">
              <input type="text" class="text input-mid" name="task" value="{$info.task}" >
            </div>
          </div>

        </div>
        <!-- 按钮 -->
        <div class="form-item cf">
          <label class="item-label"></label>
          <div class="controls edit_sort_btn">
          	<input type="hidden" name="id" value="{$info.id|default=0}" />
            <button class="btn submit-btn ajax-post no-refresh" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
          </div>
        </div>
      </form>
    </div>
  </div>
</block>
<block name="script"> 
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script> 
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script> 
<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script> 
<script type="text/javascript" charset="utf-8"> 
 //导航高亮
    highlight_subnav('{:U('Goods/index')}');
	
	$('#time-start').datetimepicker({
        format: 'yyyy-mm-dd',
        language:"zh-CN",
	    minView:2,
	    autoclose:true
    });

    $('#time-end').datetimepicker({
        format: 'yyyy-mm-dd',
        language:"zh-CN",
	    minView:2,
	    autoclose:true
    });
</script> 
</block>
